STEP 11: Let's call stick_figure() one more time, and pass in different values for the coordinates and color!

  • Drop Call Parameters Into Variable at the bottom of the code. Change the function name to stick_person.
  • Rename the return variable from my_var to person3. This will store the list being returned from the function!
  • Add three arguments in the parentheses of the function call: stick_person(100, 50, "blue")

The argument values in the function call provide the values used for x, y, and color when the function runs.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)